<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>EDUKIT Developers: Класс NewsManager</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="ukit.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">EDUKIT Developers
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">Руководство программиста</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Создано системой Doxygen 1.8.13 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',false,false,'search.php','Поиск');
});
</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespace_i_e_p.html">IEP</a></li><li class="navelem"><a class="el" href="namespace_i_e_p_1_1_managers.html">Managers</a></li><li class="navelem"><a class="el" href="class_i_e_p_1_1_managers_1_1_news_manager.html">NewsManager</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Открытые члены</a>  </div>
  <div class="headertitle">
<div class="title">Класс NewsManager</div>  </div>
</div><!--header-->
<div class="contents">

<p>Менеджер для работы с новостями  
 <a href="class_i_e_p_1_1_managers_1_1_news_manager.html#details">Подробнее...</a></p>

<p><code>#include &quot;iep/managers/nm.class.php&quot;</code></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Граф наследования:NewsManager:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
 <div class="center">
  <img src="class_i_e_p_1_1_managers_1_1_news_manager.png" usemap="#NewsManager_map" alt=""/>
  <map id="NewsManager_map" name="NewsManager_map">
<area href="class_i_e_p_1_1_managers_1_1_i_e_p.html" title="Базовый класс для все остальных менеджеров " alt="IEP" shape="rect" coords="0,0,94,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Открытые члены</h2></td></tr>
<tr class="memitem:ad8c21818a9605e24eedd55c9de7d810a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_i_e_p_1_1_managers_1_1_news_manager.html#ad8c21818a9605e24eedd55c9de7d810a">add</a> ($news)</td></tr>
<tr class="memdesc:ad8c21818a9605e24eedd55c9de7d810a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Добавление новой новости  <a href="#ad8c21818a9605e24eedd55c9de7d810a">Подробнее...</a><br /></td></tr>
<tr class="separator:ad8c21818a9605e24eedd55c9de7d810a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b1c72a30304df086fe5a73b354cff0e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_i_e_p_1_1_managers_1_1_news_manager.html#a7b1c72a30304df086fe5a73b354cff0e">addAdminNews</a> ($news)</td></tr>
<tr class="memdesc:a7b1c72a30304df086fe5a73b354cff0e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Добавление новой новости администратором  <a href="#a7b1c72a30304df086fe5a73b354cff0e">Подробнее...</a><br /></td></tr>
<tr class="separator:a7b1c72a30304df086fe5a73b354cff0e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6e2da9a8b0d1a59cd99677843cd0c9a5"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_i_e_p_1_1_managers_1_1_news_manager.html#a6e2da9a8b0d1a59cd99677843cd0c9a5">getAdminNewsByID</a> (int $news_id)</td></tr>
<tr class="separator:a6e2da9a8b0d1a59cd99677843cd0c9a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac01a92730618c66a5878abb480125c31"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_i_e_p_1_1_managers_1_1_news_manager.html#ac01a92730618c66a5878abb480125c31">getNews</a> (string $teacher_email)</td></tr>
<tr class="memdesc:ac01a92730618c66a5878abb480125c31"><td class="mdescLeft">&#160;</td><td class="mdescRight">Возвращает все новости опубликованные преподавателем  <a href="#ac01a92730618c66a5878abb480125c31">Подробнее...</a><br /></td></tr>
<tr class="separator:ac01a92730618c66a5878abb480125c31"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa13decd1ffcccfeb1ca82a2725dec749"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_i_e_p_1_1_managers_1_1_news_manager.html#aa13decd1ffcccfeb1ca82a2725dec749">getAdminNews</a> (string $admin_email)</td></tr>
<tr class="memdesc:aa13decd1ffcccfeb1ca82a2725dec749"><td class="mdescLeft">&#160;</td><td class="mdescRight">Возвращает все новости опубликованные администратором  <a href="#aa13decd1ffcccfeb1ca82a2725dec749">Подробнее...</a><br /></td></tr>
<tr class="separator:aa13decd1ffcccfeb1ca82a2725dec749"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aabd1809d328ac10aea2205362b193fee"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_i_e_p_1_1_managers_1_1_news_manager.html#aabd1809d328ac10aea2205362b193fee">getAllNews</a> ()</td></tr>
<tr class="memdesc:aabd1809d328ac10aea2205362b193fee"><td class="mdescLeft">&#160;</td><td class="mdescRight">Возвращает все опубликованные новости  <a href="#aabd1809d328ac10aea2205362b193fee">Подробнее...</a><br /></td></tr>
<tr class="separator:aabd1809d328ac10aea2205362b193fee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4d9c8b2ddcf30908e1f93c5db7524b7e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_i_e_p_1_1_managers_1_1_news_manager.html#a4d9c8b2ddcf30908e1f93c5db7524b7e">changeCaptionNews</a> (int $news_id, string $new_caption)</td></tr>
<tr class="memdesc:a4d9c8b2ddcf30908e1f93c5db7524b7e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Изменяет заголовок новости  <a href="#a4d9c8b2ddcf30908e1f93c5db7524b7e">Подробнее...</a><br /></td></tr>
<tr class="separator:a4d9c8b2ddcf30908e1f93c5db7524b7e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a443d52f702863af038eaba9dbb67ad16"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_i_e_p_1_1_managers_1_1_news_manager.html#a443d52f702863af038eaba9dbb67ad16">changeContentNews</a> (int $news_id, string $new_conent)</td></tr>
<tr class="memdesc:a443d52f702863af038eaba9dbb67ad16"><td class="mdescLeft">&#160;</td><td class="mdescRight">Изменяет содержимое новости  <a href="#a443d52f702863af038eaba9dbb67ad16">Подробнее...</a><br /></td></tr>
<tr class="separator:a443d52f702863af038eaba9dbb67ad16"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac9d34f6ad6920ecc20799c0737750d68"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_i_e_p_1_1_managers_1_1_news_manager.html#ac9d34f6ad6920ecc20799c0737750d68">removeAdminNews</a> (int $news_id)</td></tr>
<tr class="memdesc:ac9d34f6ad6920ecc20799c0737750d68"><td class="mdescLeft">&#160;</td><td class="mdescRight">Удаляет новость, добавленную администратором  <a href="#ac9d34f6ad6920ecc20799c0737750d68">Подробнее...</a><br /></td></tr>
<tr class="separator:ac9d34f6ad6920ecc20799c0737750d68"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a493a1a956355d69a1832edb5397b9a62"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_i_e_p_1_1_managers_1_1_news_manager.html#a493a1a956355d69a1832edb5397b9a62">remove</a> ($news_id)</td></tr>
<tr class="memdesc:a493a1a956355d69a1832edb5397b9a62"><td class="mdescLeft">&#160;</td><td class="mdescRight">Возвращает все опубликованные новости  <a href="#a493a1a956355d69a1832edb5397b9a62">Подробнее...</a><br /></td></tr>
<tr class="separator:a493a1a956355d69a1832edb5397b9a62"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_i_e_p_1_1_managers_1_1_i_e_p"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_i_e_p_1_1_managers_1_1_i_e_p')"><img src="closed.png" alt="-"/>&#160;Открытые члены унаследованные от <a class="el" href="class_i_e_p_1_1_managers_1_1_i_e_p.html">IEP</a></td></tr>
<tr class="memitem:aad6f240442b7c2c49d009084c59be075 inherit pub_methods_class_i_e_p_1_1_managers_1_1_i_e_p"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_i_e_p_1_1_managers_1_1_i_e_p.html#aad6f240442b7c2c49d009084c59be075">__construct</a> (\PDO $<a class="el" href="class_i_e_p_1_1_managers_1_1_i_e_p.html#ae51244ccee8b1932cc60c3869d426f66">dbc</a>)</td></tr>
<tr class="memdesc:aad6f240442b7c2c49d009084c59be075 inherit pub_methods_class_i_e_p_1_1_managers_1_1_i_e_p"><td class="mdescLeft">&#160;</td><td class="mdescRight">Задаёт контроллер базы данных  <a href="class_i_e_p_1_1_managers_1_1_i_e_p.html#aad6f240442b7c2c49d009084c59be075">Подробнее...</a><br /></td></tr>
<tr class="separator:aad6f240442b7c2c49d009084c59be075 inherit pub_methods_class_i_e_p_1_1_managers_1_1_i_e_p"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8911f29c813a66f13e805af3afea5c2b inherit pub_methods_class_i_e_p_1_1_managers_1_1_i_e_p"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_i_e_p_1_1_managers_1_1_i_e_p.html#a8911f29c813a66f13e805af3afea5c2b">setDBC</a> ($<a class="el" href="class_i_e_p_1_1_managers_1_1_i_e_p.html#ae51244ccee8b1932cc60c3869d426f66">dbc</a>)</td></tr>
<tr class="memdesc:a8911f29c813a66f13e805af3afea5c2b inherit pub_methods_class_i_e_p_1_1_managers_1_1_i_e_p"><td class="mdescLeft">&#160;</td><td class="mdescRight">Задаёт контроллер базы данных  <a href="class_i_e_p_1_1_managers_1_1_i_e_p.html#a8911f29c813a66f13e805af3afea5c2b">Подробнее...</a><br /></td></tr>
<tr class="separator:a8911f29c813a66f13e805af3afea5c2b inherit pub_methods_class_i_e_p_1_1_managers_1_1_i_e_p"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae51244ccee8b1932cc60c3869d426f66 inherit pub_methods_class_i_e_p_1_1_managers_1_1_i_e_p"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_i_e_p_1_1_managers_1_1_i_e_p.html#ae51244ccee8b1932cc60c3869d426f66">dbc</a> ()</td></tr>
<tr class="memdesc:ae51244ccee8b1932cc60c3869d426f66 inherit pub_methods_class_i_e_p_1_1_managers_1_1_i_e_p"><td class="mdescLeft">&#160;</td><td class="mdescRight">Возвращает контроллер базы данных  <a href="class_i_e_p_1_1_managers_1_1_i_e_p.html#ae51244ccee8b1932cc60c3869d426f66">Подробнее...</a><br /></td></tr>
<tr class="separator:ae51244ccee8b1932cc60c3869d426f66 inherit pub_methods_class_i_e_p_1_1_managers_1_1_i_e_p"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9307862af9ee08f7f911c98ef756642d inherit pub_methods_class_i_e_p_1_1_managers_1_1_i_e_p"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_i_e_p_1_1_managers_1_1_i_e_p.html#a9307862af9ee08f7f911c98ef756642d">query</a> (string $sql, array $params=array())</td></tr>
<tr class="memdesc:a9307862af9ee08f7f911c98ef756642d inherit pub_methods_class_i_e_p_1_1_managers_1_1_i_e_p"><td class="mdescLeft">&#160;</td><td class="mdescRight">Выполняет запрос  <a href="class_i_e_p_1_1_managers_1_1_i_e_p.html#a9307862af9ee08f7f911c98ef756642d">Подробнее...</a><br /></td></tr>
<tr class="separator:a9307862af9ee08f7f911c98ef756642d inherit pub_methods_class_i_e_p_1_1_managers_1_1_i_e_p"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5a1b761c901432b2bfd7fc4e5e75a6bd inherit pub_methods_class_i_e_p_1_1_managers_1_1_i_e_p"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_i_e_p_1_1_managers_1_1_i_e_p.html#a5a1b761c901432b2bfd7fc4e5e75a6bd">getLogs</a> ()</td></tr>
<tr class="memdesc:a5a1b761c901432b2bfd7fc4e5e75a6bd inherit pub_methods_class_i_e_p_1_1_managers_1_1_i_e_p"><td class="mdescLeft">&#160;</td><td class="mdescRight">Возвращает все записи логов  <a href="class_i_e_p_1_1_managers_1_1_i_e_p.html#a5a1b761c901432b2bfd7fc4e5e75a6bd">Подробнее...</a><br /></td></tr>
<tr class="separator:a5a1b761c901432b2bfd7fc4e5e75a6bd inherit pub_methods_class_i_e_p_1_1_managers_1_1_i_e_p"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a09f62e401b1e20f2796363d272aea18d inherit pub_methods_class_i_e_p_1_1_managers_1_1_i_e_p"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_i_e_p_1_1_managers_1_1_i_e_p.html#a09f62e401b1e20f2796363d272aea18d">removeLogs</a> (int $log_id)</td></tr>
<tr class="memdesc:a09f62e401b1e20f2796363d272aea18d inherit pub_methods_class_i_e_p_1_1_managers_1_1_i_e_p"><td class="mdescLeft">&#160;</td><td class="mdescRight">Удаляет запись лога  <a href="class_i_e_p_1_1_managers_1_1_i_e_p.html#a09f62e401b1e20f2796363d272aea18d">Подробнее...</a><br /></td></tr>
<tr class="separator:a09f62e401b1e20f2796363d272aea18d inherit pub_methods_class_i_e_p_1_1_managers_1_1_i_e_p"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5718dddc9c96c76cbcea478ce593dedb inherit pub_methods_class_i_e_p_1_1_managers_1_1_i_e_p"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_i_e_p_1_1_managers_1_1_i_e_p.html#a5718dddc9c96c76cbcea478ce593dedb">add</a> ($data)</td></tr>
<tr class="memdesc:a5718dddc9c96c76cbcea478ce593dedb inherit pub_methods_class_i_e_p_1_1_managers_1_1_i_e_p"><td class="mdescLeft">&#160;</td><td class="mdescRight">Добавление каких-либо данных в базу данных  <a href="class_i_e_p_1_1_managers_1_1_i_e_p.html#a5718dddc9c96c76cbcea478ce593dedb">Подробнее...</a><br /></td></tr>
<tr class="separator:a5718dddc9c96c76cbcea478ce593dedb inherit pub_methods_class_i_e_p_1_1_managers_1_1_i_e_p"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca74d656488fa3f2b28401b80b1f79c9 inherit pub_methods_class_i_e_p_1_1_managers_1_1_i_e_p"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_i_e_p_1_1_managers_1_1_i_e_p.html#aca74d656488fa3f2b28401b80b1f79c9">remove</a> ($what)</td></tr>
<tr class="memdesc:aca74d656488fa3f2b28401b80b1f79c9 inherit pub_methods_class_i_e_p_1_1_managers_1_1_i_e_p"><td class="mdescLeft">&#160;</td><td class="mdescRight">Удаление каких-либо данными из базы данных  <a href="class_i_e_p_1_1_managers_1_1_i_e_p.html#aca74d656488fa3f2b28401b80b1f79c9">Подробнее...</a><br /></td></tr>
<tr class="separator:aca74d656488fa3f2b28401b80b1f79c9 inherit pub_methods_class_i_e_p_1_1_managers_1_1_i_e_p"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Подробное описание</h2>
<div class="textblock"><p>Менеджер для работы с новостями </p>
<dl class="section author"><dt>Автор</dt><dd>pmswga </dd></dl>
<dl class="section version"><dt>Версия</dt><dd>1.0 </dd></dl>
</div><h2 class="groupheader">Методы</h2>
<a id="ad8c21818a9605e24eedd55c9de7d810a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad8c21818a9605e24eedd55c9de7d810a">&#9670;&nbsp;</a></span>add()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">add </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$news</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Добавление новой новости </p>
<dl class="section note"><dt>Заметки</dt><dd>Метод используется для добавления новостей преподавателем </dd></dl>
<dl class="params"><dt>Аргументы</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">$news</td><td>- новости </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Возвращает</dt><dd>TRUE - успешно, FALSE - ошибка </dd></dl>

</div>
</div>
<a id="a7b1c72a30304df086fe5a73b354cff0e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7b1c72a30304df086fe5a73b354cff0e">&#9670;&nbsp;</a></span>addAdminNews()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">addAdminNews </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$news</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Добавление новой новости администратором </p>
<dl class="section note"><dt>Заметки</dt><dd>Метод используется для добавления новостей администратором </dd></dl>
<dl class="params"><dt>Аргументы</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">$news</td><td>- Новости </td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Заметки</dt><dd>Массив с объектами класса News </dd></dl>
<dl class="section return"><dt>Возвращает</dt><dd>TRUE - успешно, FALSE - ошибка </dd></dl>

</div>
</div>
<a id="a4d9c8b2ddcf30908e1f93c5db7524b7e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4d9c8b2ddcf30908e1f93c5db7524b7e">&#9670;&nbsp;</a></span>changeCaptionNews()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">changeCaptionNews </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>$news_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>$new_caption</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Изменяет заголовок новости </p>
<dl class="params"><dt>Аргументы</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">$news_id</td><td>- Идентификатор новости </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">$new_caption</td><td>- Новое содержимое </td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Заметки</dt><dd>Содержимое новости может быть представлено в формате HTML </dd></dl>
<dl class="section return"><dt>Возвращает</dt><dd>TRUE - успешно, FALSE - ошибка </dd></dl>

</div>
</div>
<a id="a443d52f702863af038eaba9dbb67ad16"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a443d52f702863af038eaba9dbb67ad16">&#9670;&nbsp;</a></span>changeContentNews()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">changeContentNews </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>$news_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>$new_conent</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Изменяет содержимое новости </p>
<dl class="params"><dt>Аргументы</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">$news_id</td><td>- Идентификатор новости </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">$new_conent</td><td>- Новое содержимое </td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Заметки</dt><dd>Содержимое новости может быть представлено в формате HTML </dd></dl>
<dl class="section return"><dt>Возвращает</dt><dd>TRUE - успешно, FALSE - ошибка </dd></dl>

</div>
</div>
<a id="aa13decd1ffcccfeb1ca82a2725dec749"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa13decd1ffcccfeb1ca82a2725dec749">&#9670;&nbsp;</a></span>getAdminNews()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">getAdminNews </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>$admin_email</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Возвращает все новости опубликованные администратором </p>
<dl class="params"><dt>Аргументы</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">$admin_email</td><td>- электронная почта администратора </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Возвращает</dt><dd>Новости </dd></dl>
<dl class="section note"><dt>Заметки</dt><dd>Массив с объектами класса News </dd></dl>

</div>
</div>
<a id="a6e2da9a8b0d1a59cd99677843cd0c9a5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6e2da9a8b0d1a59cd99677843cd0c9a5">&#9670;&nbsp;</a></span>getAdminNewsByID()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">getAdminNewsByID </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>$news_id</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="aabd1809d328ac10aea2205362b193fee"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aabd1809d328ac10aea2205362b193fee">&#9670;&nbsp;</a></span>getAllNews()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">getAllNews </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Возвращает все опубликованные новости </p>
<dl class="section return"><dt>Возвращает</dt><dd>Новости </dd></dl>
<dl class="section note"><dt>Заметки</dt><dd>Массив с объектами класса News </dd></dl>

</div>
</div>
<a id="ac01a92730618c66a5878abb480125c31"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac01a92730618c66a5878abb480125c31">&#9670;&nbsp;</a></span>getNews()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">getNews </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>$teacher_email</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Возвращает все новости опубликованные преподавателем </p>
<dl class="params"><dt>Аргументы</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">$teacher_email</td><td>- электронная почта преподавателя </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Возвращает</dt><dd>Новости </dd></dl>
<dl class="section note"><dt>Заметки</dt><dd>Массив с объектами класса News </dd></dl>

</div>
</div>
<a id="a493a1a956355d69a1832edb5397b9a62"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a493a1a956355d69a1832edb5397b9a62">&#9670;&nbsp;</a></span>remove()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">remove </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$news_id</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Возвращает все опубликованные новости </p>
<dl class="params"><dt>Аргументы</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">$news_id</td><td>- Идентификатор новости </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Возвращает</dt><dd>TRUE - успешно, FALSE - ошибка </dd></dl>

</div>
</div>
<a id="ac9d34f6ad6920ecc20799c0737750d68"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac9d34f6ad6920ecc20799c0737750d68">&#9670;&nbsp;</a></span>removeAdminNews()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">removeAdminNews </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>$news_id</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Удаляет новость, добавленную администратором </p>
<dl class="params"><dt>Аргументы</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">$news_id</td><td>- Идентификатор новости </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Возвращает</dt><dd>TRUE - успешно, FALSE - ошибка </dd></dl>

</div>
</div>
<hr/>Объявления и описания членов класса находятся в файле:<ul>
<li>iep/managers/<a class="el" href="nm_8class_8php.html">nm.class.php</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Документация по EDUKIT Developers. Последние изменения: Вт 17 Окт 2017 18:09:13. Создано системой &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
